import request from '@/utils/request'

/**
 * 对账余额分页
 */
export function money_page(params) {
  return request({
    url: '/api/brand_finance/pagination',
    method: 'post',
    data: params
  })
}

/**
 * 提交提现申请
 */
export function money_status(params) {
  return request({
    url: `/api/brand_finance`,
    method: 'post',
    data: params
  })
}

/**
 * 账单分页
 */
export function money_list_page(params) {
  return request({
    url: `/api/daily_finance/pagination`,
    method: 'post',
    data: params
  })
}

/**
 * 商户信息
 */
export function merchant_info(params) {
  return request({
    url: `/api/user/curr_user`,
    method: 'get',
    data: params
  })
}

/**
 * 详情
 */
export function admin_merchant_detail(params) {
  return request({
    url: `/admin/merchants/${params.id}`,
    method: 'get',
    data: params
  })
}
